#include <iostream>
using namespace std;
int main(){
	int n=1,k;
	double s=1.0;
	cin>>k;
	while(s<=k){
		n++;
		s+=(1.0/n);	
	}
	cout<<n;
	return 0;
}
